package unifor.filetransfer.util;

import java.security.NoSuchAlgorithmException;

import jonelo.jacksum.JacksumAPI;
import jonelo.jacksum.algorithm.AbstractChecksum;



public class Crc16 {

	public static void main(String[] args) throws NoSuchAlgorithmException {
		byte[] teste = {103,12};
		int teste2 = CRC16Tini.compute(teste,35824);
		System.out.println(teste2);

		
		AbstractChecksum crcTeste;
		crcTeste = JacksumAPI.getChecksumInstance("crc16");
//			crcTeste.update(103);
		crcTeste.update(teste);
		System.out.println(crcTeste.getByteArray().length );

	
	}

}
